﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace YogaStudio.Data.Domain
{
    public class Faculty
    {
        public int Id { get; set; }

        [ForeignKey("User")]
     
        public int? UserId { get; set; }

        public virtual User User { get; set; }
      
        [Required]
        [Display(Name = "Title")]
        public string Title { get; set; }


        [Required]
        [Display(Name = "Full Name")]
        public string FullName { get; set; }

      
        [Required]
        [DataType(DataType.PhoneNumber)]
        [Display(Name = "Phone Number")]
        public string PhoneNumber { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Email")]
        public string Email { get; set; }


        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Address")]
        public string Address { get; set; }
        public virtual List<Section> Sections { set; get; }
    }
}